import request from '@/utils/request'

export const getBookListService = (queryinf) => {
  return request.get('/book/selectBooksByQueryinf', {
    params: { queryinf: queryinf }
  })
}

export const delBookService = (id, url) => {
  return request.get('/book/delBookById', {
    params: { id: id, imgUrl: url }
  })
}

export const addBookService = (params) => {
  return request.post('/book/addBook', params)
}

export const editBookService = (params) => {
  return request.post('/book/editBook', params)
}
